<html>
<head>
    <script src="../src/XM/Lang.js"></script>
    <script>
        (function testClone() {
            var Apple = {
                weight: 1.5,
                getWeight: function () {return this.weight}
            };
            var apple = XM.lang.clone(Apple);
            console.log(apple.getWeight());
            apple.weight = 2.5;
            console.log(apple.getWeight());
        })();
        (function testContain() {
            var arr1 = ['a', 'b', 'c'];
            console.log(XM.lang.contain("c", arr1));
            var arr2 = ['aa', arr1, 'bb'];
            console.log(XM.lang.contain(arr1, arr2));
            var obj1 = {name:'your name', age:'your age'};
            console.log(XM.lang.contain('name', obj1));
        })();
        (function testInerits() {
            
        })();
        (function testNamespace() {
            XM.lang.namespace('XM.test.mynamespace');
            console.log(XM.test.mynamespace);
            XM.test.mynamespace.num = 123;
            XM.lang.namespace('XM.test.mynamespace.num');
            console.log(XM.test.mynamespace.num);
        })();
    </script>
</head>
</html>